/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package src.network;

/**
 *
 * @author Owner
 */
public class PICAIUBountyS {

    private int x, y;
    private int type;
    private int value;

    public static final int MOVE=0;
    public static final int RUN=1;
    public static final int ATTACK=2;


    //unit attached to bounty
    private PICAIURecruittedUnit attached;

  PICAIUBountyS(int x, int y, int type, int value, PICAIURecruittedUnit u) {
    this.x=x;
    this.y=y;
    this.type=type;
    this.value=value;
    attached=u;
  }

  public double getX() {
    return x;
  }

  public double getY(){
    return y;
  }

  public int getValue(){
    return value;
  }

  public int getType(){
    return type;
  }

  public PICAIURecruittedUnit getUnit(){
    return attached;
  }

  public int getDist(double xIn, double yIn){
    double a = (xIn-x)*(xIn-x);
    double b = (yIn-y)*(yIn-y);
    return (int)(a+b);
  }

  public double getAttachedX(){
    return attached.getX();
  }

  public double getAttachedY(){
    return attached.getY();
  }
  
}
